{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "b0c70286-1527-4b38-bd8a-18a4025110af",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2.5\n",
      "<class 'float'>\n"
     ]
    }
   ],
   "source": [
    "# 数值型\n",
    "# coding:UTF-8\n",
    "num_result1 = 10\n",
    "num_result2 = 4\n",
    "print(num_result1/num_result2)\n",
    "print(type(num_result1/num_result2))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "7142152e-37d3-4f65-b9fe-c907ab324fe7",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'int'>\n",
      "<class 'NoneType'>\n"
     ]
    }
   ],
   "source": [
    "# 观察None对类型获取影响\n",
    "num_test1 = 11 # 整数类型\n",
    "num_test2 = None  # 设置了None,所以此时并不知道num_test2的数据类型\n",
    "print(type(num_test1))\n",
    "print(type(num_test2))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ba456089-4d6a-4f3d-8b4b-915cbeb8f1c5",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 是用科学计数法定义常量\n",
    "# coding:UTF-8\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "bf5e448f-b368-4dc9-aba0-15b5e6f240b6",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "10"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 10进制是所有程序中默认的操作\n",
    "# 16进制的0xa转化为10进制，\n",
    "a = int('0xa', 16)\n",
    "a"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "b88ae2b3-405f-4e07-ae11-a534f4fdbdc0",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
